-
Notifications
You must be signed in to change notification settings - Fork 9
feat: add experimental live progress monitoring for work sessions #939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #936
Implement --working-session-live-progress flag that enables real-time progress tracking in pull request descriptions by monitoring TODO list updates from the TodoWrite tool. Key features: - New progress monitoring module with live PR description updates - Visual progress bars showing task completion percentage - Automatic tracking of completed, in-progress, and pending tasks - Rate-limited PR updates (10s interval) to prevent API abuse - Integration with interactive mode for seamless operation - Comprehensive test suite with 29 passing tests Implementation details: - Add CLI option to solve.config.lib.mjs and hive.config.lib.mjs - Create solve.progress-monitoring.lib.mjs (308 lines) with progress tracking, calculation, formatting, and PR update logic - Integrate into interactive-mode.lib.mjs to detect TodoWrite calls - Forward option from hive to solve command in hive.mjs - Use HTML comment markers for idempotent section replacement - Support work session identification for multi-session tracking Files modified: - src/solve.config.lib.mjs: Add --working-session-live-progress option - src/hive.config.lib.mjs: Add --working-session-live-progress option - src/hive.mjs: Forward option to solve command - src/interactive-mode.lib.mjs: Integrate progress monitoring Files created: - src/solve.progress-monitoring.lib.mjs: Core progress monitoring logic - tests/test-working-session-live-progress.mjs: Comprehensive test suite - .changeset/working-session-live-progress.md: Changeset for release Testing: - All 29 tests passing - Tests cover utility functions, CLI config, option forwarding, and interactive mode integration - No syntax errors in JavaScript modules Fixes #936 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This reverts commit 7833574.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
Resolve conflicts, and make sure: Double check that we actually parse todo changes like these from Claude Code CLI output. And if Also if option is not disabled we should not break anything that was working before. |
|
🤖 AI Work Session Started Starting automated work session at 2026-01-11T01:44:38.946Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
…tegration - Resolve merge conflicts in hive.mjs, interactive-mode.lib.mjs, solve.config.lib.mjs - Fix lint error: remove unused 'idx' parameter in solve.progress-monitoring.lib.mjs - Complete integration: pass workingSessionLiveProgress and sessionId to createInteractiveHandler - Add flag forwarding: hive.mjs now forwards --working-session-live-progress to solve - Update tests: remove obsolete test assertions for old flag variable pattern The --working-session-live-progress flag now properly enables live progress monitoring when used with --interactive-mode. Each work session gets a unique session ID which is displayed in the PR description progress section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Solution Draft LogWork Session Summary This session resolved the merge conflicts and completed the live progress monitoring integration: Changes Made
How It WorksWhen
CI Status✅ All checks passing Now working session is ended, feel free to review and add any feedback on the solution draft. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
📊 Experimental Status Monitoring
This PR implements live progress monitoring for work sessions by tracking TODO list updates and reflecting them in pull request descriptions.
🎯 Summary
Implements issue #936 - adds experimental status monitoring that uses TODO list updates to provide real-time progress tracking in PR descriptions.
✨ Features Implemented
1. New CLI Flag:
--working-session-live-progresssolveandhivecommands[EXPERIMENTAL]and requires--interactive-modeto be enabledfalse(opt-in feature)2. Progress Monitoring Module (
src/solve.progress-monitoring.lib.mjs)█████░░░░░ 50%)3. Interactive Mode Integration (
src/interactive-mode.lib.mjs)4. Option Forwarding (
src/hive.mjs)--working-session-live-progressfrom hive to solve--interactive-mode)📋 Implementation Details
Files Modified:
src/solve.config.lib.mjs- Added CLI option definitionsrc/hive.config.lib.mjs- Added CLI option definitionsrc/hive.mjs- Added option forwarding logicsrc/interactive-mode.lib.mjs- Integrated progress monitoringFiles Created:
src/solve.progress-monitoring.lib.mjs- Core progress monitoring logic (308 lines)tests/test-working-session-live-progress.mjs- Comprehensive test suite (29 tests).changeset/working-session-live-progress.md- Changeset for release🧪 Testing
Created comprehensive test suite with 29 passing tests covering:
Run tests:
📖 Usage
Enable progress monitoring:
What happens:
TodoWritetool, the progress monitor detects itExample progress section:
███████████████████░░░░░░░░░░░ 65%
🔧 Technical Architecture
Progress Section Management:
<!-- LIVE-PROGRESS-START --><!-- LIVE-PROGRESS-END -->Rate Limiting Strategy:
Integration Points:
handleToolUsein interactive-mode.lib.mjstoolName === 'TodoWrite'🚀 Future Enhancements
Potential improvements mentioned in issue #936:
✅ Quality Assurance
📚 Related Work
This feature builds on:
solve.results.lib.mjs🔗 Fixes
Fixes #936
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]